#ifndef __thread_manager_h__
#define __thread_manager_h__

#include "../base/msg_pump.h"

class ThreadManager
{
public:
    static ThreadManager & Instance()
    {
        static ThreadManager inst;
        return inst;
    }

    ThreadManager()
        : msg_queue_(0)
        , animate_queue_(0)
    {

    }

public:
    void SetMessageQueue( MessagePump * queue ){ msg_queue_ = queue; }
    void SetAnimateQueue( MessagePump * queue ){ animate_queue_ = queue; }

    MessagePump * MessageQueue(){ return msg_queue_; }
    MessagePump * AnimateQueue(){ return animate_queue_; }

private:
    MessagePump * msg_queue_;
    MessagePump * animate_queue_;
};

#endif